package controller;

import dao.LoginDAO;
import java.sql.SQLException;
import model.LoginModel;

/**
 *
 * @author WELISSON
 */
public class LoginController {
    
    public boolean logar(LoginModel logar) throws SQLException{
        
        return new LoginDAO().logar(logar);
//        String query = "SELECT * FROM usuarios WHERE login LIKE '%"+jTLogin.getText()+"%' AND senha LIKE '%"+senha+"%';";
//            try {
//                
//                    ResultSet rs = crud.search(query);
//                    
//                //}
//            } catch (ClassNotFoundException ex) {
//                System.out.println(ex);
//            } catch (SQLException ex) {
//                System.out.println(ex);
//            }
    }
    
}
